<?php
include_once ('wxUtils.php');
$signatureArr = wxUtils::get_signature();

?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<!--<meta name="format-detection" content="telephone=no">-->
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<meta name="description" content="">
		<meta http-equiv="x-dns-prefetch-control" content="on">
		<title>
			微信接口测试
		</title>
	</head>
	<body>
		<input type="button" id="btnShare" value="分享" />
		<script src="js/jquery.min.js"></script>
		<script src="js/jweixin-1.0.0.js"></script>		
		<script>// jssdk config 对象
			var jssdkconfig = null || {};
			// 是否启用调试
			jssdkconfig.debug = false;
			jssdkconfig.appId ='<?php echo $signatureArr['app_id'] ?>';
			jssdkconfig.timestamp ='<?php echo $signatureArr['timestamp'] ?>';
			jssdkconfig.nonceStr ='<?php echo $signatureArr['noncestr'] ?>';
			jssdkconfig.signature ='<?php echo $signatureArr['signature'] ?>';
			alert('<?php echo $signatureArr['url'] ?>');
			/*jssdkconfig.jsApiList = [
				'checkJsApi',
				'onMenuShareTimeline',
				'onMenuShareAppMessage',
				'onMenuShareQQ',
				'onMenuShareWeibo',
				'hideMenuItems',
				'showMenuItems',
				'hideAllNonBaseMenuItem',
				'showAllNonBaseMenuItem',
				'translateVoice',
				'startRecord',
				'stopRecord',
				'onRecordEnd',
				'playVoice',
				'pauseVoice',
				'stopVoice',
				'uploadVoice',
				'downloadVoice',
				'chooseImage',
				'previewImage',
				'uploadImage',
				'downloadImage',
				'getNetworkType',
				'openLocation',
				'getLocation',
				'hideOptionMenu',
				'showOptionMenu',
				'closeWindow',
				'scanQRCode',
				'chooseWXPay',
				'openProductSpecificView',
				'addCard',
				'chooseCard',
				'openCard'
			];	*/	
			jssdkconfig.jsApiList = [
				'checkJsApi',
				'onMenuShareTimeline',
				'onMenuShareAppMessage',				
				'hideMenuItems',
				'showMenuItems',
				'hideAllNonBaseMenuItem',
				'showAllNonBaseMenuItem',				
				'hideOptionMenu',
				'showOptionMenu'				
			];	
			</script>
		<script src="js/index.js"></script>
	</body>
</html>
